<?php 
class Country_SongController extends Core_Controller_Action_Standard
{ 
    public function viewAction()
    {
        // Don't render this if not authorized
        $viewer = Engine_Api::_()->user()->getViewer();
        $song_id = $this->_getParam('song_id',0);
        $song = Engine_Api::_()->getItem('music_playlist_song',$song_id);
        if (empty($song) || empty($song_id)) {
            $this->_helper->viewRenderer->setNorender(true);
        }
        
        $s_id = $this->_getParam('s_id',0);
        $cSongT = Engine_Api::_()->getDbtable('songs','country');
        $select = $cSongT->select()->where('song_id = ?',$s_id);
        $cSong = $cSongT->fetchRow($select);
        if (empty($cSong) || empty($s_id)) {
            $this->_helper->viewRenderer->setNorender(true);
        }
        
        $this->view->s_id = $s_id;
        $this->view->song = $song;
        
        
    }
}